//package com.io.battery_plugin
//
//import android.content.Context
//import io.flutter.plugin.common.BinaryMessenger
//import io.flutter.plugin.common.StandardMessageCodec
//import io.flutter.plugin.platform.PlatformView
//import io.flutter.plugin.platform.PlatformViewFactory
//
//class ButtonFactory(binaryMessenger: BinaryMessenger) : PlatformViewFactory(StandardMessageCodec.INSTANCE) {
//    lateinit var binaryMessengerLocal: BinaryMessenger
//
//    init {
//        binaryMessengerLocal = binaryMessenger
//    }
//
//    override fun create(context: Context?, viewId: Int, args: Any?): PlatformView {
//        val map = args as Map<String, Any>
//        return AndroidButton(context, binaryMessengerLocal, viewId, map)
//    }
//}